package com.example.ln.zyfypt_119ln.service;

/**
 * Created by D on 2017/5/9.
 */

import com.example.ln.zyfypt_119ln.activity.LoginActivity;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;

/**
 * Created by D on 2017/5/9.
 */

public interface UserService {
    @GET("api.php/reg/username/{username}/password/{password}/tel/{tel}")
    Call<String> register(
            @Path("username") String username,
            @Path("password") String password,
            @Path("tel") String tel
    );
    @GET("api.php/login/username/{username}/password/{password}")
    Call<LoginActivity> login(
            @Path("username") String username,
            @Path("password") String password
    );
    @GET("apo.php/logout")
    Call<String> logout(
            @Header("SessionID") String SessionID
    );
}
